<?php
	
class Admin_ContactController extends CMS_Controller_Action_Admin
{
 public function init()
    {
    	parent::init();
    }
    
 public function indexAction()
 {
 	$contacts = new CMS_Models_Contact();
  	$this->view->contacts = $contacts->getAll();
	
 }
 
 public function detailAction()
 {
 	parent::disableLayout();
	$request = $this->_request->getParams();
	$contact = new CMS_Models_Contact();
	$this->view->contact = $contact->getContactById($request['id']);
 }
 
}    